﻿
/*plain-font: "fbold"、flight、"fmedium"、fregular;*/

@for $i from 1 through 6 {
    h#{$i} {
        font-weight: 300;
    }
}

@for $i from 3 through 5 {
    h#{$i} {
        font-weight: 600;
    }
}

@each $i, $value in (1, 30), (2, 24), (3, 16), (4, 14), (5, 12), (6, 10) {
    h#{$i} {
        font-size: #{$value}px;
    }
}

/*font-size*/
@each $name, $value in (xxs, 12), (xs, 14), (xsm, 16), (sm, 18), (md, 20), (lg, 24), (xl, 30), (xxl, 34) {
    .font-#{$name} {
        font-size: #{$value}px;
    }
}

/*font-size*/
@each $name, $value in (xxs, 0.12), (xs, 0.14), (xsm, 0.16), (sm, 0.18), (md, 0.20), (lg, 0.24), (xlg, 0.28), (xl, 0.3), (xxl, 0.36) {
    .fontRem-#{$name} {
        font-size: #{$value}rem;
    }
}

/*font-size pt*/
@each $name, $value in (xxs, 9), (xs, 11), (sm, 12), (md, 14), (lg, 16), (xl, 18), (xxl, 20) {
    .fontPt-#{$name} {
        font-size: #{$value}pt;
    }
}